﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MudEngine.Parsing.AST
{
    public class IdentifierExpression : Expression
    {
		public string Name { get; private set; }

		public IdentifierExpression(string ident)
		{
			this.Type = AType.TYPE_UNKNOWN;
			this.Name = ident;
		}

		public void AddPart(string part)
		{
			this.Name += "." + part;
		}

		public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
        {
            visitor.VisitIdentifierExpression(this, ctx);
        }
    }
}
